Does anyone have a dxl to extract the attribute definitions for all modules in a project? We need to consolidate our definitions to make them more consistent but first we have to know what everyone has been using.
|
Re: Extract attribute definitions in a project
Assuming you mean OBJECT rather than MODULE attributes, the following will display them for the current module. You just need to loop thru all modules, and copy/paste or stream the output to an Excel file:
print "Type Name\tBase Type\tValues\n";
AttrType at;
for at in current Module do {
int i;
print (at.name)"\t"(at.type)"";
if (at.type"" == "Enumeration") {
for ( i = 0; i < at.size; i++){
print "\t"at.strings[i];
}
}
print "\n"
}
|
Re: Extract attribute definitions in a project mcnairk - Thu Jul 12 09:37:40 EDT 2012
Assuming you mean OBJECT rather than MODULE attributes, the following will display them for the current module. You just need to loop thru all modules, and copy/paste or stream the output to an Excel file:
print "Type Name\tBase Type\tValues\n";
AttrType at;
for at in current Module do {
int i;
print (at.name)"\t"(at.type)"";
if (at.type"" == "Enumeration") {
for ( i = 0; i < at.size; i++){
print "\t"at.strings[i];
}
}
print "\n"
}
I really appreciate your help. |
Re: Extract attribute definitions in a project SystemAdmin - Thu Jul 12 10:44:56 EDT 2012 Attachments attachment_14855786_runAll2.dxl |
Re: Extract attribute definitions in a project
|
Re: Extract attribute definitions in a project mcnairk - Thu Jul 12 10:59:38 EDT 2012 |